from ihome.ihome.libs.yuntongxun.sms import CCP
from ihome.celery_tasks.celery import app

@app.task(bind=True)
def send_message(self,mobile,sms_code):

    import time
    time.sleep(10)

    ccp = CCP()
    result = ccp.send_template_sms('mobile', ['sms_code', 5], 1)


